package com.zh.chat.entity;

/**
 * Friends entity. @author MyEclipse Persistence Tools
 */

public class Friends implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1956361425893721279L;
	private FriendsId id;
	private User userBySysId;
	private User userByFriendId;
	private String divideName;

	// Constructors

	/** default constructor */
	public Friends() {
	}

	/** full constructor */
	public Friends(FriendsId id, User userBySysId, User userByFriendId,
			String divideName) {
		this.id = id;
		this.userBySysId = userBySysId;
		this.userByFriendId = userByFriendId;
		this.divideName = divideName;
	}

	// Property accessors

	public FriendsId getId() {
		return this.id;
	}

	public void setId(FriendsId id) {
		this.id = id;
	}

	public User getUserBySysId() {
		return this.userBySysId;
	}

	public void setUserBySysId(User userBySysId) {
		this.userBySysId = userBySysId;
	}

	public User getUserByFriendId() {
		return this.userByFriendId;
	}

	public void setUserByFriendId(User userByFriendId) {
		this.userByFriendId = userByFriendId;
	}

	public String getDivideName() {
		return this.divideName;
	}

	public void setDivideName(String divideName) {
		this.divideName = divideName;
	}
	@Override
	public String toString() {
		return this.userByFriendId.toString()+"\n"+"divideName:"+this.divideName;
	}
}